import request from '@/utils/request'
/********
 实名认证
 *******/
export const userAuthentication = (data) => {
  return request({
    url: '/system/user/authentication',
    method: 'post',
    data
  })
}
/*****
 用户团体卡申请
 ********/
export const groupAdd = (data) => {
  return request({
    url: '/converged/customer/groupCard/add',
    method: 'post',
    data
  })
}
/*****
 查询会员套餐列表
 ********/
export const memberList = (data) => {
  return request({
    url: '/hema/member/list',
    method: 'post',
    data
  })
}

/********
 开通会员
 *****/
export const customerActivateMembership = (data) => {
  return request({
    url: '/converged/customer/activateMembership',
    method: 'post',
    data
  })
}
/********
 我的会员卡
 *****/
export const packageQryUserMember = (data) => {
  return request({
    url: '/user/package/qryUserStoreMember',
    method: 'post',
    data
  })
}
//
/********
 查询用户收藏门店列表
 *****/
export const storeList = (data) => {
  return request({
    url: '/system/store/list',
    method: 'get',
    data
  })
}
/********
 取消收藏店铺
 *****/
export const customerCancelShop = (data) => {
  return request({
    url: '/converged/customer/cancelShop',
    method: 'post',
    data
  })
}
/********
 用户优惠券查询
 *****/
export const customerqryUserCoupon = (data) => {
  return request({
    url: '/converged/customer/qryUserCoupon',
    method: 'post',
    data
  })
}
/********
 用户团体卡查询
 *****/
export const groupGetUserGroupCard  = (data) => {
  return request({
    url: '/hema/group/getUserGroupCard',
    method: 'post',
    data
  })
}
/********
 团体卡详情查询
 *****/
export const customerQryGroupCardById  = (id) => {
  return request({
    url: `/converged/customer/qryGroupCardById/${id}`,
    method: 'get',
  })
}
/********
 团体卡关联人员查询
 *****/
export const customerQryGroupCardUser= (groupCardNo) => {
  return request({
    url: `/converged/customer/qryGroupCardUser/${groupCardNo}`,
    method: 'get',
  })
}
/******
 新增团体卡关联人
 *******/
export const relationAddUser= (data) => {
  return request({
    url: `/system/relation/addUser`,
    method: 'post',
    data
  })
}
/******
 查询人员消费明细列表
 *******/
export const detailqryConsumplist= (data) => {
  return request({
    url: `/system/detail/qryConsumplist`,
    method: 'post',
    data
  })
}
/******
 查询卡还款记录列表
 *******/
export const recordQryPayList= (data) => {
  return request({
    url: `/pay/record/qryPayList`,
    method: 'post',
    data
  })
}
/******
 用户下单支付店铺
 *******/
export const customerPay= (data) => {
  return request({
    url: `/converged/customer/pay`,
    method: 'post',
    data
  })
}


/******
 会员卡付费情况计算 分析
 *******/
export const customerAnalysisMembershipCardPay= (data) => {
  return request({
    url: `/converged/customer/analysisMembershipCardPay`,
    method: 'post',
    data
  })
}

/******
获取用户收藏的店铺
 *******/
export const storeGetMyCollectStore= (data) => {
  return request({
    url: `/converged/store/getMyCollectStore`,
    method: 'post',
    data
  })
}
/******
关于我们
 *******/

export const personalCenterAbout= (data) => {
  return request({
    url: `/factory/personalCenter/about`,
    method: 'get',
    data
  })
}
/******
新增意见反馈
 *******/
export const systemFeedback= (data) => {
  return request({
    url: `/system/feedback`,
    method: 'post',
    data
  })
}
/******
 查询用户开的会员
 *******/
export const userPackageQryUserMember= (data) => {
  return request({
    url: `/user/package/qryUserMember`,
    method: 'get',
    data
  })
}
/******
 查询店铺id
 *******/
export const storeQryByStoreId= (storeId) => {
  return request({
    url: `/hema/store/${storeId}`,
    method: 'get',
  })
}


/******
 确认差价
 *******/
export const customerPriceConfirm= (data) => {
  return request({
    url: `/converged/customer/priceConfirm`,
    method: 'POST',
    data
  })
}
/******
 确认签收
 *******/
export const customerConfirmReceipt= (data) => {
  return request({
    url: `/converged/customer/confirmReceipt`,
    method: 'POST',
    data
  })
}
/******
 取消订单
 *******/
export const customerCancelOrder= (data) => {
  return request({
    url: `/converged/customer/cancelOrder`,
    method: 'POST',
    data
  })
}
/******
 订单评价接口
 *******/

export const customerReviewOrder= (data) => {
  return request({
    url: `/converged/customer/reviewOrder`,
    method: 'POST',
    data
  })
}
/******
 团体卡用户还款
 *******/
export const customerPayGroupCardMoney= (data) => {
  return request({
    url: `/converged/customer/payGroupCardMoney`,
    method: 'POST',
    data
  })
}
/******
 发送短信验证码
 *******/
export const smsCode= (data) => {
  return request({
    url: `/sms/code`,
    method: 'POST',
    params: data
  })
}
/******
 个人信息

 *******/
export const userProfile= (data) => {
  return request({
    url: `/system/user/profile`,
    method: 'put',
    data: data
  })
}
/******
 删除团体卡人员的信息
 *******/
export const systemRelationDelete= (ids) => {
  return request({
    url: `/system/relation/${ids}`,
    method: 'DELETE',

  })
}
/******
修改信息团体卡人员的信息
 *******/
export const systemRelation= (data) => {
  return request({
    url: `/system/relation`,
    method: 'put',
    data: data
  })
}
